<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<div class="container_0 clearfix">
	<div class="box no-border">
		<div class="header">
			<h2>${pageTitle}</h2>
		</div>
		<isperp:grid url="serviceCatalog/service/listDetail"
			gridId="serviceGrid" altRows="true" gridTitle="${pageTitle}"
			pager="servicePager" cusFormatterActions="true"
			cusEditUrl="serviceCatalog/service/edit" editOrDeleteRightControl="true"
			ondbClickRowEvent="serviceGrid.edit(rowid);" actionsWidth="90"
			cusDeleteUrl="serviceCatalog/service/delete"
			cusViewUrl="serviceCatalog/service/view"
			excelExportUrl="serviceCatalog/service/excelExport">

			<jsp:attribute name="toolbar">
 				<isperp:toolbar id="userToolbar">
	 				<isperp:button id="userCreate" icon="icon-plus" text="新增服务"
						cssClass="nui-mainbtn" onclick="serviceGrid.create();"></isperp:button>
	 				
 				</isperp:toolbar>
			</jsp:attribute>

			<jsp:attribute name="searchbar">
				<table class="search-table">
					<tbody>
						<tr>
							<td align="right">编号：</td>
							<td><input type="text" field="code" op="cn">
							</td>
							<td align="right">名称：</td>
							<td><input type="text" field="name" op="cn">
							</td>
							<td align="right">状态：</td>
							<td><form:select path="serviceStatus" field="status" op="eq"
									data-allow-empty="true" items="${serviceStatus}"
									itemLabel="name" itemValue="name" />
							</td>
						</tr>
						<tr>
							<td align="right">分类：</td>
							<td><input type="hidden" id="categoryId"
								field="treenode_path" op="cn" />
								<isperp:treeSelector id="srcCatalog" width="300"
									url="serviceCatalog/category/getTree"
									valueControlId="categoryId" displayValue="${categoryName}"></isperp:treeSelector>
							</td>
							<td align="right">关键字：</td>
							<td colspan="3"><input type="text" field="keyword" op="cn">
							</td>

						</tr>
					</tbody>
				</table>
			</jsp:attribute>
			<jsp:body>
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="code" title="编号" width="80">
				</isperp:column>
				<isperp:column name="name" title="名称" width="200">
				</isperp:column>
				<isperp:column name="keyword" title="关键字" width="60">
				</isperp:column>
				<isperp:column name="category_name" title="分类" width="110">
				</isperp:column>
				<isperp:column name="service_way" title="服务方式" width="70">
				</isperp:column>
				<isperp:column name="service_response" title="服务响应" width="70">
				</isperp:column>
				<isperp:column name="pricing_model" title="计价模式" width="70">
				</isperp:column>
				<isperp:column name="release_date" title="发布日期" width="110">
				</isperp:column>
				<isperp:column name="status" title="状态" width="60">
				</isperp:column>
			</jsp:body>

		</isperp:grid>
	</div>
	<isperp:operate code="SRV_SERVICE"></isperp:operate>
</div>
